package storagetoeffectiveaccessscope

import (
	"github.com/stackrox/rox/generated/storage"
	"github.com/stackrox/rox/pkg/sac/effectiveaccessscope"
)

func Clusters(clusters []*storage.Cluster) []effectiveaccessscope.Cluster {
	if clusters == nil {
		return nil
	}
	result := make([]effectiveaccessscope.Cluster, len(clusters))
	for ix, cluster := range clusters {
		result[ix] = cluster
	}
	return result
}
